package ui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;

public class ClacGui {
    /**
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
     */
    private static void createAndShowGUI() {
    	
        JFrame frame = new JFrame("CLAC");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        JLabel label = new JLabel("Hello World");
        
        JTextArea text = new JTextArea();
        
        frame.setLayout(new BorderLayout());

        frame.getContentPane().add(label,BorderLayout.WEST);
        frame.getContentPane().add(text,BorderLayout.CENTER);
        

        frame.setPreferredSize(new Dimension(400, 300));

        frame.pack();
        frame.setVisible(true);
    }
    
    public static void launchClacGui() {
    	
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
    }
}